/**
 * 
 * @Project HRL Simulation
 * @Date 20.06.2011
 * @Author Aebi Pascal, Kocher Marc, Sriranjan George
 * @School BFH-TI Biel, Projekt 1
 *
 */

package main;

import gui.Model;
import gui.ModelViewController;
import gui.views.HRLMainFrame;
import gui.views.SettingsCardPanel;
import gui.views.StatisticsFrame;
import gui.views.ViewerCardPanel;
import gui.views.WelcomeCardPanel;


/**
 * The Class HRL.
 */
public class HRL {

	/**
	 * The main method.
	 * 
	 * @param args the args
	 */
	public static void main(String[] args) {
		
		Model model = new Model();
		
		HRLMainFrame jfHRL = new HRLMainFrame(model);
		StatisticsFrame jfStatistics = new StatisticsFrame(model);
		
		WelcomeCardPanel wcpvWelcome = new WelcomeCardPanel(model);
		jfHRL.addCardPanel(wcpvWelcome, "Welcome");
		
        SettingsCardPanel scpvSettings = new SettingsCardPanel(model);
        jfHRL.addCardPanel(scpvSettings, "Settings");
        
        ViewerCardPanel vcpvViewer = new ViewerCardPanel(model);
        jfHRL.addCardPanel(vcpvViewer, "Viewer");
        
        // Set welcome panel active
        jfHRL.setActiveCardPanel("Welcome");
        
        new ModelViewController(model, jfHRL, jfStatistics, scpvSettings, vcpvViewer);
	}
}